added samples
[windows-sources.git] / sdk / samples / all in on code / Visual Studio 2008 / CSASPNETMVCPager / Views / Account / Register.aspx
blob7b260a31520662a658624f9ed269201899079954
1 <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<CSASPNETMVCPager.Models.RegisterModel>" %>
3 <asp:Content ID="registerTitle" ContentPlaceHolderID="TitleContent" runat="server">
4     Register
5 </asp:Content>
6 <asp:Content ID="registerContent" ContentPlaceHolderID="MainContent" runat="server">
7     <h2>
8         Create a New Account</h2>
9     <p>
10         Use the form below to create a new account.
11     </p>
12     <p>
13         Passwords are required to be a minimum of
14         <%= Html.Encode(ViewData["PasswordLength"]) %>
15         characters in length.
16     </p>
17     <% using (Html.BeginForm())
18        { %>
19     <%= Html.ValidationSummary(true, "Account creation was unsuccessful. Please correct the errors and try again.") %>
20     <div>
21         <fieldset>
22             <legend>Account Information</legend>
23             <div class="editor-label">
24                 <%= Html.LabelFor(m => m.UserName) %>
25             </div>
26             <div class="editor-field">
27                 <%= Html.TextBoxFor(m => m.UserName) %>
28                 <%= Html.ValidationMessageFor(m => m.UserName) %>
29             </div>
30             <div class="editor-label">
31                 <%= Html.LabelFor(m => m.Email) %>
32             </div>
33             <div class="editor-field">
34                 <%= Html.TextBoxFor(m => m.Email) %>
35                 <%= Html.ValidationMessageFor(m => m.Email) %>
36             </div>
37             <div class="editor-label">
38                 <%= Html.LabelFor(m => m.Password) %>
39             </div>
40             <div class="editor-field">
41                 <%= Html.PasswordFor(m => m.Password) %>
42                 <%= Html.ValidationMessageFor(m => m.Password) %>
43             </div>
44             <div class="editor-label">
45                 <%= Html.LabelFor(m => m.ConfirmPassword) %>
46             </div>
47             <div class="editor-field">
48                 <%= Html.PasswordFor(m => m.ConfirmPassword) %>
49                 <%= Html.ValidationMessageFor(m => m.ConfirmPassword) %>
50             </div>
51             <p>
52                 <input type="submit" value="Register" />
53             </p>
54         </fieldset>
55     </div>
56     <% } %>
57 </asp:Content>